package com.csh.subject.application.convert;

import com.csh.subject.application.dto.SubjectCategoryDto;
import com.csh.subject.application.dto.SubjectLabelDto;
import com.csh.subject.domain.entity.SubjectCategoryBo;
import com.csh.subject.domain.entity.SubjectLabelBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 标签Dto的转换
 */
@Mapper
public interface SubjectLabelDtoConvert {
    SubjectLabelDtoConvert INSTANCE = Mappers.getMapper(SubjectLabelDtoConvert.class);

    SubjectLabelBo convertDtoToBo(SubjectLabelDto subjectLabelDto);

    List<SubjectLabelDto> convertBoToDtoList(List<SubjectLabelBo> subjectLabelBoList);
}
